package com.bjc.core.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bjc.base.bean.TreeVO;
import com.bjc.base.core.IBaseDao;
import com.bjc.core.bean.request.DepartmentReqVO;
import com.bjc.core.bean.request.RolePermissionReqVO;
import com.bjc.core.bean.response.DepartmentVO;
import com.bjc.core.bean.response.DimensionItemDataVO;

/**
 * 部门VO
 * 
 * @author 许自辉
 * @date 2017年8月21日
 */

public interface IDepartmentDao extends IBaseDao<DepartmentReqVO, DepartmentVO> {
	
	/**
	 * 查询该维度未拥有数据范围的数据
	 */
	List<DimensionItemDataVO> getDimensionItemData(DepartmentReqVO dataReqVO);

	/**
	 * 查询部门树
	 */
	List<TreeVO> getTree(RolePermissionReqVO rolepermissionReqVO);
	
	/**
	 * 查询部门下属部门
	 */
	List<DepartmentVO> getChildDept(DepartmentReqVO dataReqVO);
	
	
	List<Integer> getDimensionData(@Param("workId")String workId,@Param("roleIds")String roleIds);

}
